#include "./solution.h"
#include "./instance.h"
#include <stdio.h>

void calcCost(solution s){
	int i,j;
	COST(s) = 0;
	for (i=0;i<N-1;i++){
		for (j=i+1;j<N;j++){
			if(s[i]!=s[j]) COST(s)+=instance[i][j]; 
		}
	}
}

solution allocSol(){
	return (solution) malloc((N+1)*sizeof(int));
}

void freeSol(solution s){
	if (s!=NULL) free(s);
}
